﻿//--------------------------------------------------------------
// Desc: 不使用贴图，也不接受光照的纯色shader
// Author: yaoxin
// Date: 2015-04-22
// Copyright: xingchen
//---------------------------------------------------------------
Shader "SCore/PureColor" 
{
	Properties 
	{
		_Color ("Color", Color) = (1, 1, 1, 1)
	}
	
	SubShader 
	{
		Tags { "RenderType" = "Opaque" }
		LOD 50
		
		Pass 
		{
            CGPROGRAM
            #pragma vertex vert_img
            #pragma fragment frag

            #include "UnityCG.cginc"
            
            fixed4 _Color;

            fixed4 frag(v2f_img i) : SV_Target 
            {
            	fixed4 col = _Color;
            	col.a = 1.0;
            	
                return col;
            }
            ENDCG
        }
	} 
}
